import { _decorator, Component, director } from 'cc';

const { ccclass, property } = _decorator;

@ccclass('BootLoader')
export class BootLoader extends Component {
  @property
  public targetScene = 'Demo';

  start() {
    director.preloadScene(this.targetScene, () => {
      director.loadScene(this.targetScene);
    });
  }
}

